<?php

###########################################################################
#   Copyright (C) 2012 CDNPAL LTD by Christopher Gu                       #
#   resources@cdnpal.com                                                  #
#                                                                         #
#   coded for Php 4.3/5.X and above                                       #
#   and AllowOverride all for .htaccess                                   #
#                                                                         #
#   This program is free software released                                #
#   under the GPL version 2 license:                                      #
#   http://www.gnu.org/licenses/gpl-2.0.htm                               #
#                                                                         #
#   This program is distributed WITHOUT ANY WARRANTY                      #
#   or FITNESS FOR A PARTICULAR PURPOSE.                                  #
#                                                                         #
#   DADF-SDK                                                              #
#                                                                         #
###########################################################################

class OutgoingAcceptResponse extends GenericDataObject
{
    protected $_primary = 'OutgoingAcceptResponseID';
	protected $_name = 'OutgoingAcceptResponse';
    
	public $class_member_only_outgoing_accept_authentication;
	
	public function load_children() {
		
		$params = array();
		$params["OutgoingAcceptResponseID"] = $this->OutgoingAcceptResponseID;
		$outgoing_accept_authentication_factory = OutgoingAcceptAuthenticationFactory::get_instance();
		$this->class_member_only_outgoing_accept_authentication = $outgoing_accept_authentication_factory->get_row($params);
		
	}
	
	/*
	 * TODO: All all the save_children functions
	 */
	
	public function save_children() {

		if ($this->class_member_only_outgoing_accept_authentication != null):
			$this->class_member_only_outgoing_accept_authentication->save();
		endif;
		
	}
	
}

